package com.abigdreamer.util;

import java.util.Calendar;

public class MyCalendar
{
  public static final String getYear()
  {
    Calendar c = Calendar.getInstance();
    return String.valueOf(c.get(1));
  }
  
  public static final String getMonth()
  {
    Calendar c = Calendar.getInstance();
    return String.valueOf(c.get(2) + 1);
  }
  
  public static final String getDay()
  {
    Calendar c = Calendar.getInstance();
    return String.valueOf(c.get(5));
  }
  
  public static final String getWeekDay()
  {
    Calendar c = Calendar.getInstance();
    return weekday[(c.get(7) - 1)];
  }
  
  private static final String[] weekday = { "星期日", "星期一", "星期二", "星期三", 
    "星期四", "星期五", "星期六" };
  
  public static final String getLunar()
  {
    Calendar c = Calendar.getInstance();
    Lunar lunar = new Lunar(c);
    return lunar.toString();
  }
}
